//
//  sendReport.m
//  tcpoctest
//
//  Created by gump on 5/23/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendReport.h"

@implementation sendReport

-(void)SendReportP:(NSString *)mail
{
    //发送 41char(1)，41char(1)，用户名长度char(1),用户名char(x)
    
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 3 + INT_PL + [mail length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[mail length]];
    [sb WriteString:mail withLength:[mail length]];
    
    [self Package];
}


@end
